package com.fortune.cat.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * @author zhaozeyang
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RouteDefinitionRecipient implements Serializable {


    private static final long serialVersionUID = 7127000178102163723L;

    private Long id;

    private String routeId = UUID.randomUUID().toString();

    private List<PredicateDefinitionRecipient> predicates = new ArrayList<>();

    private List<FilterDefinitionRecipient> filters = new ArrayList<>();

    private URI uri;

    private int order = 0;

}